//package com.anyou.mall.fin.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//
//import com.anyou.mall.fin.vo.AllVipFee;
//import com.anyou.mall.fin.vo.VipFeeDetails;
//import com.anyou.mall.fin.vo.VipFeeManageVo;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.anyou.common.annotation.Log;
//import com.anyou.common.core.controller.BaseController;
//import com.anyou.common.core.domain.ApiResult;
//import com.anyou.common.enums.BusinessType;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import com.anyou.mall.fin.domain.VipFeeManage;
//import com.anyou.mall.fin.service.IVipFeeManageService;
//import com.anyou.common.utils.poi.ExcelUtil;
//import com.anyou.common.core.page.TableDataInfo;
//
///**
// * 会员费管理Controller
// *
// * @author gaochaohao
// * @date 2022-04-25
// */
//@Api(tags = "会员费管理")
//@RestController
//@RequestMapping("/fin/vipFeeManage")
//public class VipFeeManageController extends BaseController
//{
//    @Autowired
//    private IVipFeeManageService vipFeeManageService;
//
//    /**
//     * 查询会员费管理列表
//     */
//    @ApiOperation("查询会员费管理列表")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:list')")
//    @GetMapping("/list")
//    public TableDataInfo<List<VipFeeManageVo>> list(VipFeeManage vipFeeManage)
//    {
//        startPage();
//        List<VipFeeManageVo> list = vipFeeManageService.selectVipFeeManageList(vipFeeManage);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出会员费管理列表
//     */
//    @ApiOperation("导出会员费管理列表")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:export')")
//    @Log(title = "会员费管理", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, VipFeeManage vipFeeManage)
//    {
//        List<VipFeeManageVo> list = vipFeeManageService.selectVipFeeManageList(vipFeeManage);
//        ExcelUtil<VipFeeManageVo> util = new ExcelUtil<VipFeeManageVo>(VipFeeManageVo.class);
//        util.exportExcel(response, list, "会员费管理数据");
//    }
//
//    /**
//     * 获取会员费管理详细信息
//     */
//    @ApiOperation("获取会员费管理详细信息")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:query')")
//    @GetMapping(value = "/{vipFeeManageId}")
//    public ApiResult<VipFeeManage> getInfo(@PathVariable("vipFeeManageId") Long vipFeeManageId)
//    {
//        return ApiResult.success(vipFeeManageService.selectVipFeeManageByVipFeeManageId(vipFeeManageId));
//    }
//
//    /**
//     * 新增会员费管理
//     */
//    @ApiOperation("新增会员费管理")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:add')")
//    @Log(title = "会员费管理", businessType = BusinessType.INSERT)
//    @PostMapping
//    public ApiResult add(@RequestBody VipFeeManage vipFeeManage)
//    {
//        return ApiResult.success(vipFeeManageService.insertVipFeeManage(vipFeeManage));
//    }
//
//    /**
//     * 修改会员费管理
//     */
//    @ApiOperation("修改会员费管理")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:edit')")
//    @Log(title = "会员费管理", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public ApiResult edit(@RequestBody VipFeeManage vipFeeManage)
//    {
//        return ApiResult.success(vipFeeManageService.updateVipFeeManage(vipFeeManage));
//    }
//
//    /**
//     * 删除会员费管理
//     */
//    @ApiOperation("删除会员费管理")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:remove')")
//    @Log(title = "会员费管理", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{vipFeeManageIds}")
//    public ApiResult remove(@PathVariable Long[] vipFeeManageIds)
//    {
//        return ApiResult.success(vipFeeManageService.deleteVipFeeManageByVipFeeManageIds(vipFeeManageIds));
//    }
//
//    /**
//     * 获取会员费总金额
//     */
//    @ApiOperation("获取会员费总金额")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:allVipFee')")
//    @GetMapping("/allVipFee")
//    public ApiResult<AllVipFee> allVipFee() {
//        return vipFeeManageService.getAllVipFee();
//    }
//
//    /**
//     * 获取会员费明细
//     */
//    @ApiOperation("获取会员费明细")
//    @PreAuthorize("@ss.hasPermi('fin:vipFeeManage:details')")
//    @GetMapping("/details/{vipFeeManageId}")
//    public ApiResult<List<VipFeeDetails>> getDetails(@PathVariable("vipFeeManageId") Long vipFeeManageId) {
//        return vipFeeManageService.getDetails(vipFeeManageId);
//    }
//}
